package main

import (
	"github.com/google/wire"
	"jk-time/webook/account/cache"
	"jk-time/webook/account/dao"
	"jk-time/webook/account/grpc"
	"jk-time/webook/account/ioc"
	"jk-time/webook/account/repository"
	"jk-time/webook/account/service"
)

func InitAccountServiceServer1() *App {
	wire.Build(
		ioc.InitDB,
		ioc.InitRedis,
		cache.NewRedisAccountCacheCache,
		dao.NewAccountGormDao,
		repository.NewAccountRepository,
		service.NewAccountService,
		ioc.InitLogger,
		grpc.NewAccountServiceServer,
		ioc.NewGrpcxServer,
		wire.Struct(new(App), "*"),
	)
	return new(App)
}
